﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;


namespace Nereus.Zeus.Mvc.Test
{

    public class NereusConfiguration : INBuilderConfigure
    {
        public string[] AssemblyPathArray { get; set; }

        public string Title { get; set; }

        public string Content { get; set; }
    }

    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();
            services.AddNereusMvc(new NereusConfiguration() {
                AssemblyPathArray = new string[] { "Nereus.Zeus.Mvc.Test" },
                Content = "请使用HTTP POST JSON格式进行请求。",
                Title = "优城统一平台接口-API 详细接口文档  by Nereus"
            });
        }

        public void Configure(IApplicationBuilder app)
        {
            app.UseMvc();
        }
    }
}
